package org.lagou.sqlSeesion;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    // 查询所有
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    // 查询一个
    public <T> T selectOne(String statementid, Object... params) throws Exception;

    // 非查询
    public <T> T doUpdate(String statementId, Object... params) throws Exception;

    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);

    //为排序Dao接口生成代理实现类
    public <T> T getMapperOrderBy(Class<?> mapperClass, String orderField);

}
